<?php /* Smarty version Smarty-3.0.7, created on 2014-08-13 23:29:29
         compiled from "E:\project\xampp\htdocs\farmdepot/themes/prestashop/category.tpl" */ ?>
<?php /*%%SmartyHeaderCode:4153eb9269ac0ef9-08730857%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '38e21dcaec4c4b1722c6a9a9ccefaaee8dd24c61' => 
    array (
      0 => 'E:\\project\\xampp\\htdocs\\farmdepot/themes/prestashop/category.tpl',
      1 => 1407942242,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '4153eb9269ac0ef9-08730857',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_escape')) include 'E:\project\xampp\htdocs\farmdepot\tools\smarty\plugins\modifier.escape.php';
?>

<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./breadcrumb.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./errors.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<?php if ($_smarty_tpl->getVariable('typecategoy')->value==2){?>
	<?php if (isset($_smarty_tpl->getVariable('category',null,true,false)->value)){?>
		<?php if ($_smarty_tpl->getVariable('category')->value->id&&$_smarty_tpl->getVariable('category')->value->active){?>

						<h1>
							<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('category')->value->name,'htmlall','UTF-8');?>
<?php if (isset($_smarty_tpl->getVariable('categoryNameComplement',null,true,false)->value)){?><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('categoryNameComplement')->value,'htmlall','UTF-8');?>
<?php }?>
						</h1>
						<?php if (isset($_smarty_tpl->getVariable('subcategories',null,true,false)->value)){?>
							<!-- Subcategories -->
							<div id="subcategories">
								<ul class="inline_list">
								<?php  $_smarty_tpl->tpl_vars['subcategory'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('subcategories')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['subcategory']->key => $_smarty_tpl->tpl_vars['subcategory']->value){
?>
									<li>
										<a href="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('link')->value->getCategoryLink($_smarty_tpl->tpl_vars['subcategory']->value['id_category'],$_smarty_tpl->tpl_vars['subcategory']->value['link_rewrite']),'htmlall','UTF-8');?>
" title="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['subcategory']->value['name'],'htmlall','UTF-8');?>
">
											<?php if ($_smarty_tpl->tpl_vars['subcategory']->value['id_image']){?>
												<img src="<?php echo $_smarty_tpl->getVariable('link')->value->getCatImageLink($_smarty_tpl->tpl_vars['subcategory']->value['link_rewrite'],$_smarty_tpl->tpl_vars['subcategory']->value['id_image'],'medium');?>
" alt="" width="<?php echo $_smarty_tpl->getVariable('mediumSize')->value['width'];?>
" height="<?php echo $_smarty_tpl->getVariable('mediumSize')->value['height'];?>
" />
											<?php }else{ ?>
												<img src="<?php echo $_smarty_tpl->getVariable('img_cat_dir')->value;?>
default-medium.jpg" alt="" width="<?php echo $_smarty_tpl->getVariable('mediumSize')->value['width'];?>
" height="<?php echo $_smarty_tpl->getVariable('mediumSize')->value['height'];?>
" />
											<?php }?>
										</a>
										<a href="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('link')->value->getCategoryLink($_smarty_tpl->tpl_vars['subcategory']->value['id_category'],$_smarty_tpl->tpl_vars['subcategory']->value['link_rewrite']),'htmlall','UTF-8');?>
"><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['subcategory']->value['name'],'htmlall','UTF-8');?>
</a>
									</li>
								<?php }} ?>
								</ul>
							
							</div>
						<?php }else{ ?>
								<?php if ($_smarty_tpl->getVariable('products')->value){?>
									<div class="products_block">
									
										<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./product-list.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
$_template->assign('products',$_smarty_tpl->getVariable('products')->value); echo $_template->getRenderedTemplate();?><?php unset($_template);?>
										
									</div>
									
										<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./pagination.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
										
								<?php }elseif(!isset($_smarty_tpl->getVariable('subcategories',null,true,false)->value)){?>
								
										<p class="warning"><?php echo smartyTranslate(array('s'=>'Không có món ăn trong thực đơn này.'),$_smarty_tpl);?>
</p>
										
								<?php }?>
							
						<?php }?>

		<?php }elseif($_smarty_tpl->getVariable('category')->value->id){?>
			
			<p class="warning"><?php echo smartyTranslate(array('s'=>'This category is currently unavailable.'),$_smarty_tpl);?>
</p>
				
		<?php }?>
	<?php }?>
<?php }?>

